<?php

include ('../config.php');
$session_aid=$input->session('aid');
if($session_aid==false){
    header('location:login.php');
}
$sql="select * from admin WHERE aid='{$session_aid}'";
$result=$db->query($sql);
$session_user=$result->fetch_array(MYSQLI_ASSOC);

?>